package ch.sv7.tool.dbmanager.integration.sybase;

import java.sql.Connection;

import ch.sv7.tool.dbmanager.db.TableSchema;
import ch.sv7.tool.dbmanager.db.dialect.Dialect;
import ch.sv7.tool.dbmanager.db.dialect.DialectException;
import ch.sv7.tool.dbmanager.db.dialect.sybase.SybaseDialect;
import ch.sv7.tool.dbmanager.types.TypesInfo;

/**
 * TODO: Document me!
 *
 * @author svt
 *
 */
public class SybasePartitionTestCase extends SybaseTestCase {

	private Dialect dialect;

	
	protected void setUp() throws Exception {
		super.setUp();
		dialect = new MockPartitionedSybaseDialect(getTypesInfo());

	}

	public Dialect getDialect() {
		return dialect;
	}

	
	protected void tearDown() throws Exception {
		super.tearDown();
	}

	public class MockPartitionedSybaseDialect extends SybaseDialect {

		/**
		 * @param typesInfo
		 */
		public MockPartitionedSybaseDialect(TypesInfo typesInfo) {
			super(typesInfo);
		}

		protected int getPartitionNumber(TableSchema tableSchema, Connection conn) throws DialectException {
			return 4;
		}
	
		
		
	}
	
}
